﻿<ResourceDictionary x:Class="OpenLS.Spreadsheet.UI.Internals.CommentContainerResources"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI">
    <Style x:Key="commentContainerStyle" TargetType="{x:Type FrameworkElement}" >
        <Setter Property="ssui:WorksheetGrid.Row" Value="{Binding Path=Cell.Row.Index, Mode=OneWay}"/>
        <Setter Property="ssui:WorksheetGrid.Column" Value="{Binding Path=Cell.Column.Index, Mode=OneWay}"/>
        <Setter Property="ssui:WorksheetGrid.ItemWidth" Value="{Binding Path=Width}"/>
        <Setter Property="ssui:WorksheetGrid.ItemHeight" Value="{Binding Path=Height}"/>
        <Setter Property="ssui:WorksheetGrid.RowOffset" Value="{Binding Path=TopMargin}"/>
        <Setter Property="ssui:WorksheetGrid.ColumnOffset" Value="{Binding Path=LeftMargin}"/>
    </Style>

</ResourceDictionary>
